export default {
    database : {
        type: 'mysql',
        charset : 'utf8mb4',
        host: 'localhost',
        port: 3306,
        username: 'root',
        password: 'root123',
        database: 'cabinet',
        entities: ['dist/**/*.entity{.ts,.js}', 'dist/**/*{.ts,.js}'],
        synchronize: false,
        poolSize : 10
    },

    redis : [
        {
            url : 'redis://localhost:6379'
        }
    ],

    jwt : {
        expire : 3600,
        login : {
            secret : 'LTAI5tBNbKSkg4rAsqDhvogt',
            scale : 13,
        },

        refreshLogin : {
            secret : '5KjRP77kbyYN9OxdFdWEvVYmvwrYQe',
            scale : 355,
        }
    },

    wechat : {
        appid : 'wxfdd87f7216cac6e3',
        secret : 'b177c142ab36de75a839c505ae58bb4f',
        authCode2SessionUrl : 'https://api.weixin.qq.com/sns/jscode2session?grant_type=authorization_code'
    },

    mqtt : {
        topic : {
            chargeRes : 'chargeRes',
            chargeSettlement : 'chargeSettlement',
            chargeSettlementReply : 'chargeSettlementReply'
        },
        options : {
            host : '127.0.0.1',
            port : 1883,
            username : 'bill',
            password : '123456',
        }
    },

    rabbitmq : {
        options : {
            hostname : '127.0.0.1',
            port : 5672,
            username : 'guest',
            password : 'guest',
        },

        dealLetterMessageTtl : 600000,
        messageTtl : 30000,

        queue : {
            dealLetterChargeResQueue : 'dealLetterChargeResQueue',
            profitSettlementQueue : 'profitSettlementQueue'
        },

        exchange : {
            chargeResExchange : 'chargeResExchange',
            profitSettlementExchange : 'profitSettlementExchange'
        },
    },

    redisKey : {
        profitSettlementQueue : 'profitSettlementQueue',
        charge : {
            startCharge: 'S:C:R:',
            addCharge : 'A:C:R:',
            stopCharge : 'S:C:R:',
            chargingOrder : 'CING:O:'
        }
        
    }
}